package org.springblade.modules.door.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("t_third_order")
public class ThirdOrder {
	public static final String STATE_INIT = "STATE_INIT"; //订单生成
	public static final String STATE_SUCCESS = "STATE_SUCCESS"; //支付成功
	public static final String STATE_FAIL = "STATE_FAIL"; //支付失败
	public static final String STATE_CANCEL = "STATE_CANCEL"; //已撤销
	public static final String STATE_REFUND = "STATE_REFUND"; //已退款
	public static final String STATE_CLOSED = "STATE_CLOSED"; //订单关闭


	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	private String orderCode;
	private String deviceCode;
	private BigDecimal orderAmount;
	private BigDecimal productAmount;
	private BigDecimal promotionAmount;
	private String userId;
	private Date createTime;
	private Date updateTime;
	private String orderState;
	private String requestSerial;
}
